跳到主要内容

EXACT

Checks whether two text strings are exactly the same, and returns true or false. This function is case-sensitive.

Syntax

expression.EXACT(arg1, arg2);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRangeApiNamestring
arg2RequiredApiRangeApiNamestring

Returns

boolean

Example

var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.EXACT("MyPassword", "mypassword"));